From: Ray Strode Date: Wed, 28 Apr 2021 14:38:58 +0000 (-0400) Subject: authPrompt: Don't fail auth prompt until user is out of retries X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~40 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a97c4b89458f7b0734f10428692f7337490a6026;p=gnome-shell.git authPrompt: Don't fail auth prompt until user is out of retries At the moment we set the state of the auth prompt to failed any time the user fails an attempt. But verification is still going on until the user exhausts all attempts, so that's wrong. This commit changes it to only set the state to failed when the user is out of tries. Part-of: --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 0b3da4ecb..4844b9ee0 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -329,7 +329,9 @@ var AuthPrompt = GObject.registerClass({ this.updateSensitivity(canRetry); this.setActorInDefaultButtonWell(null); - this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED; + + if (!canRetry) + this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED; if (wasQueryingService) Util.wiggle(this._entry);